#include<stdio.h>
#include<string.h>                                                              
#include<unistd.h>
#include<pthread.h>
#include<fcntl.h>

int main(int argc, char* argv[])
{
    int fd = open("./fifo",O_RDONLY);
    char buf[1024];
    int ret = read(fd,buf,sizeof(buf));
    write(1,buf,ret);
    return 0;
}


